package com.thinkcube.edutainment.service.viewitem;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.thinkcube.edutainment.R;
import com.thinkcube.edutainment.domain.data.TodoData;

/**
 * Shanuka @Cyberlmj 3:08:30 PM Email: shanuka.gayashan@cyberlmj.com
 */
@EViewGroup(R.layout.todo_item)
public class TodoItem extends RelativeLayout {

	@ViewById(R.id.textViewTitle)
	TextView textViewTitle;

	public TodoItem(final Context context) {
		super(context);

	}

	public TodoItem(final Context context, final AttributeSet attrs) {
		super(context, attrs);
	}

	public void bind(final TodoData todoData) {
		textViewTitle.setText(todoData.getTodoDescription());

	}
}
